package com.wang.todoList.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author zifan
 * @since 2021-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TodoInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String title;

    @TableField("createDate")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date createdate;

    /**
     * 1：代办。2：已完成。3：放弃。4：删除。
     */
    private Integer status;

    @TableField("userId")
    private Integer userid;

    private String content;


}
